<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" scroll="no">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="renderer" content="webkit">
	<title>{$Think.lang.ui_explorer} - {$Think.lang.kod_name}{$Think.lang.kod_power_by}</title>
	<link href="{$Think.config.STATIC_PATH}images/favicon.ico" rel="Shortcut Icon" >
	<link href="{$Think.config.STATIC_PATH}style/bootstrap.css?ver={$Think.config.KOD_VERSION}" rel="stylesheet"/>
	<link href="{$Think.config.STATIC_PATH}style/font-awesome/css/font-awesome.css" rel="stylesheet" >
	<link href="{$Think.config.STATIC_PATH}style/font-awesome/css/font-awesome.css" rel="stylesheet" >
	<!--[if IE 7]>
	<link rel="stylesheet" href="{$Think.config.STATIC_PATH}style/font-awesome/css/font-awesome-ie7.css">
	<![endif]-->
	
	<link href="{$Think.config.STATIC_PATH}style/skin/simple/app_explorer.css?ver={$Think.config.KOD_VERSION}" rel="stylesheet" id='link_css_list'/>
	
</head>

<?php if(isset($_GET['type'])){?>
<style>.topbar{display: none;}.frame-header{top:0;}.frame-main{top:50px;}</style>
<?php } ?>

<body style="overflow:hidden;" oncontextmenu="return core.contextmenu();">
	<include file="Common/navbar"/>
	<div class="frame-header">
		<div class="header-content">
			<div class="header-left">
				<div class="btn-group btn-group-sm">
					<button class="btn btn-default" id='history_back' title='{$Think.lang.history_back}' type="button">
						<i class="font-icon icon-arrow-left"></i>
					</button>
					<button class="btn btn-default" id='history_next' title='{$Think.lang.history_next}' type="button">
						<i class="font-icon icon-arrow-right"></i>
					</button>
					<button class="btn btn-default" id='refresh' title='{$Think.lang.refresh_all}' type="button">
						<i class="font-icon icon-refresh"></i>
					</button>
				</div>
			</div><!-- /header left -->
			
			<div class='header-middle'>
				<button class="btn btn-default" id='home' title='{$Think.lang.root_path}'>
					<i class="font-icon icon-home"></i>
				</button>

				<div id='yarnball' title="{$Think.lang.address_in_edit}"></div>
				<div id='yarnball_input'><input type="text" name="path" value="" class="path" id="path"/></div>

				<button class="btn btn-default" id='fav' title='{$Think.lang.add_to_fav}' type="button">
					<i class="font-icon icon-star"></i>
				</button>

				<button class="btn btn-default" id='up' title='{$Think.lang.go_up}' type="button">
					<i class="font-icon icon-circle-arrow-up"></i>
				</button>
				<div class="path_tips" title="{$Think.lang.only_read_desc}"><i class="icon-warning-sign"></i>{$Think.lang.only_read}</div>
			</div><!-- /header-middle end-->		
			<div class='header-right'>
				<input type="text" name="seach"/>
				<button class="btn btn-default" id='search' title='{$Think.lang.search}' type="button">
					<i class="font-icon icon-search"></i>
				</button>
			</div>
		</div>
	</div><!-- / header end -->

	<div class="frame-main">
		<div class='frame-left'>
			<ul id="folderList" class="ztree"></ul>
			<div class="bottom_box">
				<div class="box_content">
					<a href="javascript:ui.path.list('*recycle*');" class="cell menuRecycleButton"><i class="font-icon icon-trash"></i><span>{$Think.lang.recycle}</span></a>
					<a href="javascript:ui.path.list('*share*');" class="cell"><i class="font-icon icon-share-sign"></i><span>{$Think.lang.my_share}</span></a>
					<div style="clear:both"></div>
				</div>
			</div>
		</div><!-- / frame-left end-->
		<div class='frame-resize'></div>
		<div class='frame-right'>
			<div class="frame-right-main">
				<div class="tools">
					<div class="tools-left">
						<!-- 回收站tool -->
						<div class="btn-group btn-group-sm kod_recycle_tool hidden">
							<button id='recycle_clear' class="btn btn-default" type="button">
					        	<i class="font-icon icon-folder-close-alt"></i>{$Think.lang.recycle_clear}
					        </button>
						</div>

						<!-- 分享 tool -->
						<div class="btn-group btn-group-sm kod_share_tool hidden">
							<button id='refresh' class="btn btn-default" type="button">
					        	<i class="font-icon icon-folder-close-alt"></i>{$Think.lang.refresh}
					        </button>
						</div>

						<!-- 文件功能 -->
						<div class="btn-group btn-group-sm kod_path_tool">
					        <button id='newfolder' class="btn btn-default" type="button">
					        	<i class="font-icon icon-folder-close-alt"></i>{$Think.lang.newfolder}
					        </button>
					        <button id='newfile' class="btn btn-default" type="button">
					        	<i class="font-icon icon-file-alt"></i>{$Think.lang.newfile}
					        </button>
					        <button id='upload' class="btn btn-default" type="button">
					        	<i class="font-icon icon-cloud-upload"></i>{$Think.lang.upload}
					        </button>

					        <div class="btn-group btn-group-sm">
						    <button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">
						      <i class="font-icon icon-tasks"></i>more&nbsp;<span class="caret"></span>	      
						    </button>
						    <ul class="dropdown-menu pull-right drop-menu-action fadein">
								<li id="open"><a href='javascript:;'><i class="font-icon icon-folder-open-alt"></i>{$Think.lang.open}</a></li>
							    <li id="share"><a href='javascript:;'><i class="font-icon icon-share-sign"></i>{$Think.lang.share}</a></li>
							    <li id="download"><a href='javascript:;'><i class="font-icon icon-download"></i>{$Think.lang.download}</a></li>
							    <li id="zip"><a href='javascript:;'><i class="font-icon icon-folder-close"></i>{$Think.lang.zip}</a></li>
							    <li class="divider"></li>
							    <li id="copy"><a href='javascript:;'><i class="font-icon icon-copy"></i>{$Think.lang.copy}</a></li>
							    <li id="rname"><a href='javascript:;'><i class="font-icon icon-pencil"></i>{$Think.lang.rename}</a></li>
							    <li id="cute"><a href='javascript:;'><i class="font-icon icon-cut"></i>{$Think.lang.cute}</a></li>
							    <li id="past"><a href='javascript:;'><i class="font-icon icon-paste"></i>{$Think.lang.past}</a></li>
							    <li id="remove"><a href='javascript:;'><i class="font-icon icon-trash"></i>{$Think.lang.remove}</a></li>
								<li class="divider"></li>
								<li id="clone"><a href='javascript:;'><i class="font-icon icon-external-link"></i>{$Think.lang.clone}</a></li>
							    <li id="createLink"><a href='javascript:;'><i class="font-icon icon-share-alt"></i>{$Think.lang.createLink}</a></li>
							    <li class="divider"></li>
							    <li id="info"><a href='javascript:;'><i class="font-icon icon-info"></i>{$Think.lang.info}</a></li>
						    </ul>
						  </div>
						</div>
						<span class='msg'>{$Think.lang.path_loading}</span>
					</div>
					<div class="tools-right">
						<div class="btn-group btn-group-sm">
						  <button id='set_icon' title="{$Think.lang.list_list}" type="button" class="btn btn-default">
						  	<i class="font-icon icon-th"></i>
						  </button>
						  <button id='set_list' title="{$Think.lang.list_list}" type="button" class="btn btn-default">
						  	<i class="font-icon icon-list"></i>
						  </button>
						  <div class="btn-group btn-group-sm">
						    <button id="set_theme" title="{$Think.lang.setting_theme}" type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">
						      <i class="font-icon icon-dashboard"></i>&nbsp;&nbsp;<span class="caret"></span>
						    </button>
						    <ul class="dropdown-menu pull-right dropdown-menu-theme fadein">
							    <?php 
									$tpl="<li class='list {this}' theme='{0}'><a href='javascript:void(0);'>{1}</a></li>\n";
									//echo getTplList(',',':',$config['setting_all']['themeall'],$tpl,$config['user']['theme'],'this');
								?>
						    </ul>
						  </div>
						</div>
					</div>
					<div style="clear:both"></div>
				</div><!-- end tools -->
				<div id='list_type_list'></div><!-- list type 列表排序方式 -->
				<div class='bodymain html5_drag_upload_box menuBodyMain'>
					<div class="fileContiner"></div>
				</div><!-- html5拖拽上传list -->
			</div>
		</div><!-- / frame-right end-->
	</div><!-- / frame-main end-->
	<include file="Common/footer"/>
<script src="{$Think.config.STATIC_PATH}js/lib/seajs/sea.js?ver={$Think.config.KOD_VERSION}"></script>
<script src="{:U('User/commonJs', 'type=explorer')}"></script>

<script type="text/javascript">

	G.this_path = "{$dir}";
	seajs.config({
		base: "{$Think.config.STATIC_PATH}js/",
		preload: ["lib/jquery-1.8.0.min"],
		map:[
			[ /^(.*\.(?:css|js))(.*)$/i,'$1$2?ver='+G.version]
		]
	});
	seajs.use("app/src/explorer/main");

</script>

</body>
</html>